home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / john / hc_showd.hqx / ShowDialog XCMD 1.4 / card_7196.txt < prev    next >
Encoding:
Text File  |  1989-08-30  |  2.5 KB  |  90 lines

  1. -- card: 7196 from stack: in.4
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2607
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on closeCard
  8.   hide cd fld "Info"
  9. end closeCard
  10.  
  11.  
  12. -- part 2 (button)
  13. -- low flags: 00
  14. -- high flags: A003
  15. -- rect: left=230 top=283 right=305 bottom=280
  16. -- title width / last selected line: 0
  17. -- icon id / first selected line: 0 / 0
  18. -- text alignment: 1
  19. -- font id: 0
  20. -- text size: 12
  21. -- style flags: 0
  22. -- line height: 16
  23. -- part name: More
  24. ----- HyperTalk script -----
  25. on mouseUp
  26.   lock screen
  27.   get the visible of cd fld "Info"
  28.   if it is false then
  29.     show cd fld "Info"
  30.     unlock screen with zoom out
  31.   else
  32.     hide cd fld "Info"
  33.     unlock screen with zoom in
  34.   end if
  35. end mouseUp
  36.  
  37.  
  38.  
  39. -- part 1 (field)
  40. -- low flags: 81
  41. -- high flags: 2004
  42. -- rect: left=133 top=123 right=306 bottom=355
  43. -- title width / last selected line: 0
  44. -- icon id / first selected line: 0 / 0
  45. -- text alignment: 0
  46. -- font id: 3
  47. -- text size: 10
  48. -- style flags: 0
  49. -- line height: 13
  50. -- part name: Info
  51. ----- HyperTalk script -----
  52. on mouseUp
  53.   lock screen
  54.   hide me
  55.   unlock screen with visual zoom in
  56. end mouseUp
  57.  
  58.  
  59. -- part contents for background part 2
  60. ----- text -----
  61. ShowDialog XCMD Types
  62.  
  63. -- part contents for background part 1
  64. ----- text -----
  65.  
  66. ShowDialog XCMD takes six forms: Type 1, Type 2, Type 3, Type 4, Type 5, and Type 6.
  67.  
  68. Type 1 allows for buttons, icons, PICTs, and static text only.  You can modify the text as you wish in the parameter list.
  69.  
  70. Type 2 can have these and ALSO up to two fields of editable text that the user can type into and a single checkbox.  One of these fields can contain default text (provided in the parameters).  
  71.  
  72. Type 3 shares the same attributes as Type 2 with the exception that you can have as many radio buttons as you want instead of the single check box.
  73.  
  74. Type 4 is also similar to Type 2 with the exception that this type contains a popup menu.
  75.  
  76. Types 5 and 6 are used to display "help" screens consisting of multiple PICTs.
  77.  
  78.  
  79.  
  80.  
  81. -- part contents for background part 7
  82. ----- text -----
  83. 2
  84.  
  85. -- part contents for card part 1
  86. ----- text -----
  87. To use ShowDialog XCMD it is assumed that you have some familiarity with ResEdit, as this is how you create the custom dialog templates that are used by ShowDialog. (Or, if you wish, you can use ResEdit to steal dialogs out of other applications that will work with ShowDialog XCMD with very minor, or no, modification.)  
  88.  
  89. ShowDialog makes very few assumptions about the DLOG resource that you provide it.  It simply works with what is there.
  90.